package com.mzj.saas.mservice.announcement.entity;

import com.mzj.saas.mservice.sys.entity.IdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/*
 *公告与用户状态表
 */
@Entity
@Table(name = "saas_announcement_user")
public class AnnouncementUser extends IdEntity {
    /*
     *公告id
     */
    @Column(name = "announcement_id", nullable = true)
    private Long announcementId;
    /*
     *用户id
     */
    @Column(name = "user_id", nullable = true)
    private String userId;
    /*
     *阅读状态(0未阅读 1已阅读)
     */
    @Column(name = "view_status", nullable = true)
    private Integer viewStatus;
    /*
     *点赞状态
     */
    @Column(name = "status", nullable = true)
    private Integer status;
    /*
     *点赞操作时间
     */
    @Column(name = "thumb_time", nullable = true)
    private Date thumbTime;
    /*
     *阅读时间
     */
    @Column(name = "view_time", nullable = true)
    private Date viewTime;
    public Long getAnnouncementId() {
        return announcementId;
    }

    public void setAnnouncementId(Long announcementId) {
        this.announcementId = announcementId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getThumbTime() {
        return thumbTime;
    }

    public void setThumbTime(Date thumbTime) {
        this.thumbTime = thumbTime;
    }

    public Date getViewTime() {
        return viewTime;
    }

    public void setViewTime(Date viewTime) {
        this.viewTime = viewTime;
    }

    public Integer getViewStatus() {
        return viewStatus;
    }

    public void setViewStatus(Integer viewStatus) {
        this.viewStatus = viewStatus;
    }
}
